home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gSlideDelay
- set r to the regPoint of cast "SLIDER2.PIC"
- delete char 1 to 9 of r
- delete char the number of chars in r of r
- set r to value(r)
- set min to 133 + r
- set max to 213 + r
- set range to max - min
- set c to 1
- repeat while the mouseDown
- set newV to the mouseV + r
- if newV > max then
- set newV to max
- else
- if newV < min then
- set newV to min
- end if
- end if
- set thePercent to float(newV - min) / float(range)
- set gSlideDelay to integer((1 - thePercent) * 10.0)
- set newR to integer(float(gSlideDelay) / float(10.0) * float(range)) - range
- set the regPoint of cast "Slider2.PIC" to point(0, newR)
- updateStage()
- end repeat
- end
-